package com.wenshi.app.fragment;

import com.wenshi.view.IKeyValue;


/**
 * Created by Administrator on 2017/3/14.
 * 适用于普通的Fragment
 */
public abstract  class WsFragment extends WsBaseFragment {

    private boolean isNoticeSueper = false;

    /**
     * 绑定视图和数据
     *
     *
     */
    public void renderView(IKeyValue data, int layoutid) {
        setContentView(layoutid);
        super.renderView(data);

    }

    /**
     * 设置自定义的Feagment布局
     *
     *
     */
    public void setContentView(int layoutid) {
        if (!isNoticeSueper) {
            getWsWiewDelegate().setContentView(layoutid);
            isNoticeSueper = true;
        }

}
}
